import http from '../utils/http.js'

export const getNoSellWork = () => {
	return http.get('/sysUser/getNoSellWork')
}
export const getNoSellBox = () => {
	return http.get('/sysUser/getNoSellBox')
}

export const getSellDetails = (price) => {
	return http.get(`/works/getSellDetails/${price}`)
}

export const worksSale = (worksId, price) => {
	return http.get(`/works/worksSale/${worksId}/${price}`)
}
export const boxSale = (worksId, price) => {
	return http.get(`/box/boxSale/${worksId}/${price}`)
}

export const cancelSale = (worksId) => {
	return http.get(`/works/cancelSale/${worksId}`)
}